import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-footer',
  templateUrl: './footer.component.html',
  styleUrls: ['./footer.component.css']
})
export class FooterComponent implements OnInit {

  public currentYear: number;

  public loginURL = 'http://client-qatools.jdb-dev.com/JDBToolsPlatform/ProcessQualityReport/app/login.html?from=';

  constructor() { }

  ngOnInit() {
    this.currentYear = (new Date()).getFullYear();
  }

  logIn() {
    console.log(window.location.href);
    window.open(this.loginURL + window.location.href, '_self');
  }

}
